package com.yaolifei.flower.core;

public class User implements PermissionObject, PermissionMaster {
	private int userId;
	private int groupId;
	private String name;
	private String password;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public int getMasterId() {
		return userId;
	}

	@Override
	public MasterType getMasterType() {
		return MasterType.USER;
	}

	@Override
	public int getObjectId() {
		return userId;
	}
	
	@Override
	public String getObjectType() {
		return this.getClass().getSimpleName();
	}
	
}
